<script setup>
  const data = {
    name:'百度',
    url:'https://www.baidu.com/',
    logo:'https://www.baidu.com/img/flexible/logo/pc/result.png'
  }
</script>

<template>
  <div>
    <a
      v-bind:href='data.url'
      target='_self'>
      <img
        v-bind:src='data.logo'
        v-bind:title='data.name'>
      <br>
      <input type = "button"
        v-bind:value="`点击访问${data.name}`">
    </a>
  </div>
</template>

<style scoped>

</style>
